RedDotsGuildHelpRobHandler = {};
local this = RedDotsGuildHelpRobHandler;
function RedDotsGuildHelpRobHandler.init()
    CloseEvent(Config.EventType.Fresh_GuildHelpRob, this.update)
    ListenEvent(Config.EventType.Fresh_GuildHelpRob, this.update)
    return this;
end
 
--
function RedDotsGuildHelpRobHandler.getFlag(...)
    if logicMgr.FuncOpenManager.isOpen(Config.FuncOpenType.Guild, false) then
        if FuncOpenManager.isOpen(Config.FuncOpenType.Rob, false) then
            if plunderHandler.IsOpen() and logicMgr.GuildManager.unionInfo ~= nil and plunderHandler.cur_help_plunder_reddot == 1 then
                if plunderHandler.can_help_plunder_count > 0 then
                    return Config.RedDotsFlagState.Needful
                end
            end
        end
    end
    return Config.RedDotsFlagState.None;
end

function RedDotsGuildHelpRobHandler.update()
    RedDotsManager.addBroadcast(Config.RedDotsType.GuildHelpRob)
end

return RedDotsGuildHelpRobHandler;